//
//  DJNavigationController.m
//  WeiboDemo
//
//  Created by Bworm on 15/1/30.
//  Copyright (c) 2015年 Bworm. All rights reserved.
//

#import "DJNavigationController.h"

@interface DJNavigationController ()

@end

@implementation DJNavigationController

// 当类第一次被加载的时候调用
+ (void)initialize
{
    // 取出导航条item的外观对象(主题对象)
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    
    // 设置默认状态的文字颜色
    NSMutableDictionary *md = [NSMutableDictionary dictionary];
    md[NSForegroundColorAttributeName] = [UIColor orangeColor];
    [item setTitleTextAttributes:md forState:UIControlStateNormal];
    // 设置高亮状态文字的颜色
    NSMutableDictionary *highMd = [NSMutableDictionary dictionary];
    highMd[NSForegroundColorAttributeName] = [UIColor blackColor];
    [item setTitleTextAttributes:highMd forState:UIControlStateHighlighted];
}

- (BOOL)hidesBottomBarWhenPushed
{
    return YES;
}

@end
